/**
 * Created by wcy on 2017/4/8.
 */
const webpack = require('webpack');
const path = require('path');
module.exports = {
    entry:'./src/main.ts',
    output:{
        //指定打包后输出文件名
        filename:'./bundle.js'
    },
    resolve:{
        root:[ path.join(__dirname,'src')],
        extensions:['','.ts','.js']
    },
    module:{
        loaders:[
            {test:/\.ts$/,loader:'ts-loader'}
        ]
    }
};